package com.gym.backadmin.controller;

import java.util.HashMap;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 
 * @author xinchun.wang 
   @email: 532002108@qq.com
 */
@Controller
@RequestMapping("test")
public class TestController {
	private final Logger logger = LoggerFactory.getLogger(getClass());

	@RequestMapping("getData")
	@ResponseBody
	public Map<String, Object> getData() {
		logger.info("enter getData");
		Map<String, Object> model = new HashMap<String, Object>();
		model.put("name", "xinchun.wang");
		model.put("password", "xinchun.wang");
		logger.info("exit getData");
		return model;
	}
}
